package com.fys.order.utils;

import com.fys.order.vo.ResultVO;

/**
 * @author: fys
 * @description:
 * @create: 2020-07-23 16:39
 **/
public class ResultVOUtil {
    private final static Integer SUCCESS_CODE = 0;

    public static <T> ResultVO<T> success(T t){
        ResultVO<T> resultVO = new ResultVO<>();
        resultVO.setCode(SUCCESS_CODE);
        resultVO.setMsg("成功");
        resultVO.setData(t);
        return resultVO;
    }


}
